<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      table {
        margin: 50px auto;
      }

      table tbody tr:nth-of-type(odd) {
        background-color: #ccc;
      }
      table tbody tr:nth-of-type(even) {
        background-color: #fff;
      }

      /* table tbody tr:hover {
        background-color: yellow;
      } */

      table tbody tr.active {
        background-color: yellow;
      }
    </style>
  </head>
  <body>
    <table border="1" width="800px">
      <thead>
        <tr>
          <th>序号</th>
          <th>姓名</th>
          <th>年龄</th>
          <th>操作</th>
        </tr>
      </thead>
      <tr>
        <td>1</td>
        <td>张三</td>
        <td>18</td>
        <td>
          <button class="del">删除-1</button>
          <button>修改</button>
        </td>
      </tr>
      <tr>
        <td>2</td>
        <td>李四</td>
        <td>20</td>
        <td>
          <button class="del">删除-2</button>
          <button>修改</button>
        </td>
      </tr>
      <tr>
        <td>3</td>
        <td>王五</td>
        <td>21</td>
        <td>
          <button class="del">删除-3</button>
          <button>修改</button>
        </td>
      </tr>
      <tr>
        <td>4</td>
        <td>赵六</td>
        <td>20</td>
        <td>
          <button class="del">删除-4</button>
          <button>修改</button>
        </td>
      </tr>
    </table>

    <!-- <img src="1.jpg" />

    <img src="" alt="" class="big" /> -->

    <script src="table.js"></script>
  </body>
</html>
